<!DOCTYPE html>
<html>
<head>
    <title>demo</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="/plugins/elementui/index.css">
    <link rel="stylesheet" href="/css/base.css">
    <link rel="stylesheet" href="/css/demo.css">
</head>
<body>
<div id="app">
    <!-- 项目列表 开始******* -->

    <el-row v-show="!formShow">
        <el-col :span="6"><div class="grid-content bg-purple-dark">
            <fieldset v-if="!formShow">
                <legend>项目检索</legend>
                <el-button type="primary" @click="addItem">新增项目</el-button>
            </fieldset>
            <el-table
                :data="itemData"
                :row-class-name="itemTableRowClassName"
                border>
                <el-table-column
                    type="index"
                    width="50">
                </el-table-column>
                <el-table-column
                    prop="projectName"
                    label="项目名称"
                    align="center">
                </el-table-column>
                <el-table-column
                    prop="packageName"
                    label="包名"
                    align="center">
                </el-table-column> 
                <el-table-column
                    fixed="right"
                    label="操作"
                    width="100">
                    <template slot-scope="scope">
                        <el-button @click="itemInEnums(scope.row)" type="text" size="small">查看</el-button>
                        <el-button type="text" size="small" @click="itemInfoDetails(scope.row.projectId)">编辑</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </div></el-col>
        <el-col :span="1"><div class="grid-content bg-purple-dark">&nbsp;
        </div></el-col>
        <el-col :span="17"><div class="grid-content bg-purple-dark">
            <!-- 表列表  开始*********-->
            <fieldset v-if="!formShow">
                <legend>数据库检索</legend>
                <el-row :gutter="30">
                    <el-col :span="4">
                        <div class="grid-content bg-purple-dark">
                            <el-input placeholder="请输入内容" v-model='searchValue'></el-input>
                        </div>
                    </el-col>
                    <el-button type="success" @click="search">查询</el-button>
                    <el-button type="primary" @click="addOrEdit()">新增表</el-button>
                    <el-button type="warning" @click="goEvc('path')">生成源码到指定目录</el-button>
                    <el-button type="warning" @click="goEvc">下载源码包</el-button>
                </el-row>
            </fieldset>

            <el-table
            v-show="!formShow"
            :data="schemas"
            border
            ref = "multipleTable" 
            height="730">
            <el-table-column
                type="selection"
                align="center"
                width="70">
            </el-table-column>
            <el-table-column
                    prop="tableName"
                    align="center"
                    label="表名">
            </el-table-column>
            <el-table-column
                    prop="tableDesc"
                    align="center"
                    label="表说明">
            </el-table-column>
            <el-table-column
                    prop="relationType"
                    align="center"
                    label="表类型">
                <template slot-scope="scope">
                    {{relationTypeMapping[scope.row.relationType].desc}}
                </template>
            </el-table-column>
            <el-table-column
                    fixed="right"
                    label="操作"
                    align="center"
                    width="200">
                <template slot-scope="scope">
                    <el-button @click="addOrEdit(scope.row.tableId)" type="primary" size="small">编辑</el-button>
                    <!-- <el-button type="danger" size="small">删除</el-button> -->
                </template>
            </el-table-column>
            </el-table>


             <!-- 分页 -->
            <div class="block">
                <el-pagination
                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                    :current-page="listPageNo"
                    :page-sizes="[10, 20, 30, 40]"
                    :page-size="listPageSize"
                    layout="total, sizes, prev, pager, next, jumper"
                    :total="listPageTotal">
                </el-pagination>
            </div>

            <!-- 表列表  结束*********-->
        </div></el-col>
    </el-row>

    
    <!-- 新建 编辑 表 开始****** -->
    <div class="box" v-show="formShow">
        <transition name="el-zoom-in-center">
        <div v-show="formShow" class="transition-box">
            <el-container>
                <el-header style='height: 40px;line-height: 40px;'>新增数据表
                    <i class="el-icon-close" @click="closeZoom"></i>
                </el-header>
                <el-main>
                    <el-form ref="schema" :model="schema" label-width="110px" size="mini" :rules="rules">
                        <el-form-item label="表名" prop="tableName">
                            <el-row>
                                <el-col :span="8">
                                    <div class="grid-content bg-purple-dark">
                                        <div class="grid-content bg-purple">
                                            <el-input v-model="schema.tableName" placeholder="请输入表名"></el-input>
                                            <el-button type="primary" @click="initGenTableFromDb">从数据库中初始化</el-button>
                                        </div>
                                    </div>
                                </el-col>
                            </el-row>
                        </el-form-item>
                        <el-form-item label="表说明" prop="tableDesc">
                            <el-col :span="8">
                                <div class="grid-content bg-purple">
                                    <el-input v-model="schema.tableDesc"></el-input>
                                </div>
                            </el-col>
                        </el-form-item>
                        <el-form-item label="主键策略" prop="pkStrategy">
                            <el-col :span="20">
                                <div class="grid-content bg-purple">
                                    <el-radio-group v-model="schema.pkStrategy">
                                        <el-radio-button v-for="item in pkStrategyTypes" :label="item.name">
                                            {{item.desc}}
                                        </el-radio-button>
                                    </el-radio-group>
                                </div>
                            </el-col>
                        </el-form-item>
                        <el-form-item label="表类型" prop="relationType">
                            <el-col :span="20">
                                <div class="grid-content bg-purple">
                                    <el-radio-group v-model="schema.relationType" @change="selectRelation">
                                        <el-radio-button v-for="item in relationTypes" :label="item.name">
                                            {{item.desc}}
                                        </el-radio-button>
                                    </el-radio-group>
                                </div>
                            </el-col>
                        </el-form-item>
                        <el-form-item label="关系字段"
                                      v-if="schema.relationType && relationTypeMapping[schema.relationType].needFk"
                                      required>
                            <div class="grid-content bg-purple">
                                <el-input v-model="schema.relationField" placeholder="请输入表名"></el-input>
                            </div>
                        </el-form-item>
                        <el-form-item label="列表布局" v-show="allowListLayout.length > 0">
                            <el-col :span="20">
                                <div class="grid-content bg-purple layoutBox">
                                    <el-radio-group v-model="schema.listLayout" @change="handelUpdate">
                                        <el-radio-button
                                            :key="menuKey"
                                            v-for="(item,index) in allowListLayout"
                                            :label="item.name">
                                            {{item.desc}}
                                        </el-radio-button>
                                    </el-radio-group>
                                </div>
                            </el-col>
                        </el-form-item>
                        <el-form-item label="列表分页">
                            <el-col :span="12">
                                <div class="grid-content bg-purple">
                                    <el-switch
                                        :key="menuKey"
                                        @click.native="handelUpdate"
                                        v-model="schema.pageable">
                                    </el-switch>
                                </div>
                            </el-col>
                        </el-form-item>
                        <el-form-item label="表单布局" v-if="schema.relationType" prop="formLayout">
                            <el-col :span="12">
                                <div class="grid-content bg-purple">
                                    <el-radio-group v-model="schema.formLayout">
                                        <el-radio-button v-for="item in formLayouts" :label="item.name">
                                            {{item.desc}}
                                        </el-radio-button>
                                    </el-radio-group>
                                </div>
                            </el-col>
                        </el-form-item>
                        <el-form-item label="操作" required>
                            <el-col :span="24">
                                <div class="grid-content bg-purple">
                                    <el-checkbox-group v-model="defaultSelect" style="display: inline-block;">
                                        <el-checkbox v-for="item in defaultOperates" :name="item.name"
                                                     :label="item.desc"
                                                     @change="handleCheckedCitiesChange(item.name)"></el-checkbox>
                                        <el-checkbox v-for="(item,index) in extendedOperates" :name="item.name"
                                                     @change="handleCheckedCitiesChange"
                                                     class="addSelfBtn"
                                                     :label="item.desc">
                                            <template>
                                                {{item.desc}}
                                                <i class="el-icon-circle-close checkboxBtn"
                                                   @click.stop='closeCheckbox(index)'></i>
                                            </template>
                                        </el-checkbox>
                                    </el-checkbox-group>
                                    <el-button type="primary" icon="el-icon-plus" circle
                                               @click="operatorDialogVisible = true"
                                               style="margin-left: 20px;"></el-button>
                                </div>
                            </el-col>
                        </el-form-item>


                        <el-dialog title="表格操作" :visible.sync="operatorDialogVisible">
                            <el-form :model="operateForm" size="mini" label-position="right">
                                <el-form-item label="操作名称">
                                    <el-input v-model="operateForm.name" autocomplete="off"></el-input>
                                </el-form-item>
                                <el-form-item label="操作描述">
                                    <el-input v-model="operateForm.desc" autocomplete="off"></el-input>
                                </el-form-item>
                                <el-form-item label="可批量操作">
                                    <el-switch
                                            size="mini"
                                            :key="menuKey"
                                            @click.native="handelUpdate"
                                            v-model="operateForm.batchable">
                                    </el-switch>
                                </el-form-item>
                                <el-form-item label="可单条操作">
                                    <el-switch
                                        size="mini"
                                        :key="menuKey"
                                        @click.native="handelUpdate"
                                        v-model="operateForm.singleable">
                                    </el-switch>
                                </el-form-item>
                            </el-form>
                            <div slot="footer" class="dialog-footer">
                                <el-button @click="operatorDialogVisible = false">取 消</el-button>
                                <el-button type="primary" @click="addExtendedOperates">确 定</el-button>
                            </div>
                        </el-dialog>

                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                            <legend>数据表格区域</legend>
                        </fieldset>

                        <el-table
                            :data="mergeArr"
                            border
                            :rules="rules"
                            :row-class-name="tableRowClassName"
                            style="width: 100%">

                            <el-table-column
                                    fixed="left"
                                    align="center"
                                    width="120"
                                    label="字段名">
                                <template slot-scope="scope">
                                    <el-input size="mini" v-model="scope.row.name"></el-input>
                                </template>
                            </el-table-column>
                            <el-table-column
                                    fixed="left"
                                    width="180"
                                    align="center"
                                    label="字段描述">
                                <template slot-scope="scope">
                                    <el-input size="mini" v-model="scope.row.desc"></el-input>
                                </template>
                            </el-table-column>
                            <el-table-column label="数据库">
                                <el-table-column
                                        width="150"
                                        align="center"
                                        label="字段类型">
                                    <template slot-scope="scope">
                                        <el-select size="mini" v-model="scope.row.type" placeholder="请选择">
                                            <el-option
                                                    v-for="item in fieldTypes"
                                                    :key="item.name"
                                                    :label="item.name"
                                                    :value="item.name">
                                                <span style="float: left">{{ item.name }}</span>
                                                <span style="float: right; color: #8492a6; font-size: 13px">{{ item.className }}</span>
                                            </el-option>
                                        </el-select>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                        align="center"
                                        width="125"
                                        label="字段长度">
                                    <template slot-scope="scope">
                                        <el-input-number
                                                v-if="fieldTypeMapping[scope.row.type] && fieldTypeMapping[scope.row.type].lengthable && !mergeArr[scope.$index].isExtendField"
                                                :min="0" size="mini" v-model="scope.row.length"
                                                label="" style="width: 100px;"></el-input-number>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                        align="center"
                                        width="120"
                                        label="字段精度">
                                    <template slot-scope="scope">
                                        <el-input-number
                                                v-if="fieldTypeMapping[scope.row.type] && fieldTypeMapping[scope.row.type].decimalable && !mergeArr[scope.$index].isExtendField"
                                                :min="0" :max="8" size="mini" v-model="scope.row.decimal"
                                                label=""></el-input-number>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                        align="center"
                                        width="70"
                                        label="唯一">
                                    <template slot-scope="scope">
                                        <el-switch
                                                v-if='!mergeArr[scope.$index].isExtendField'
                                                size="mini"
                                                :key="menuKey"
                                                @click.native="handelUpdate"
                                                v-model="scope.row.unique"
                                        >
                                        </el-switch>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                        align="center"
                                        width="70"
                                        label="主键">
                                    <template slot-scope="scope">
                                        <el-switch
                                                v-if="!mergeArr[scope.$index].isExtendField"
                                                size="mini"
                                                :key="menuKey"
                                                @click.native="handelUpdate"
                                                v-model="scope.row.pk"
                                        >
                                        </el-switch>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                    align="center"
                                    width="70"
                                    label="可空">
                                    <template slot-scope="scope">
                                        <el-switch
                                            v-if="!mergeArr[scope.$index].isExtendField"
                                            size="mini"
                                            :key="menuKey"
                                            @click.native="handelUpdate"
                                            v-model="scope.row.nullable">
                                        </el-switch>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                    prop="address"
                                    align="center"
                                    width="100"
                                    label="默认值">
                                    <template slot-scope="scope">
                                            <el-input v-if="!mergeArr[scope.$index].isExtendField" size="mini" clearable
                                                  v-model="scope.row.defaultVal"></el-input>
                                    </template>
                                </el-table-column>
                            </el-table-column>
                            <el-table-column label="列表">
                                <el-table-column
                                    align="center"
                                    width="70"
                                    label="列表展示">
                                    <template slot-scope="scope">
                                        <el-switch size="mini"
                                                   :key="menuKey"
                                                   @click.native="handelUpdate"
                                                   v-model="mergeArr[scope.$index].listViewable"
                                        >
                                        </el-switch>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                    align="center"
                                    width="70"
                                    label="列表排序">
                                    <template slot-scope="scope" v-if='mergeArr[scope.$index].listViewable'>
                                        <el-switch size="mini"
                                                   :key="menuKey"
                                                   @click.native="handelUpdate"
                                                   v-model="scope.row.sortable"
                                        >
                                        </el-switch>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                    prop="zip"
                                    align="center"
                                    width="120"
                                    label="列表过滤">
                                    <template slot-scope="scope" v-if='mergeArr[scope.$index].listViewable'>
                                        <el-select size="mini" v-model="scope.row.filterType" placeholder="请选择">
                                            <el-option
                                                    v-for="item in filterTypes"
                                                    :key="item.name"
                                                    :label="item.desc"
                                                    :value="item.name">
                                                <span style="float: left">{{ item.desc }}</span>
                                                <span style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</span>
                                            </el-option>
                                        </el-select>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                    v-if="exprotShow"
                                    prop="zip"
                                    align="center"
                                    width="70"
                                    label="导出">
                                    <template slot-scope="scope">
                                        <el-switch
                                                :key="menuKey"
                                                @click.native="handelUpdate"
                                                v-model="scope.row.exportable"
                                        >
                                        </el-switch>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                    align="center"
                                    width="80"
                                    label="展示顺序">
                                    <template slot-scope="scope">
                                        <el-input :key="menuKey"
                                                  v-if="scope.row.exportable || scope.row.listViewable" size="mini"
                                                  v-model="scope.row.index"></el-input>
                                    </template>
                                </el-table-column>
                            </el-table-column>
                            <el-table-column label="表单">
                                <el-table-column
                                    prop="formViewable"
                                    width="120"
                                    align="center"
                                    label="表单展示">
                                    <template slot-scope="scope">
                                        <el-select
                                                size="mini"
                                                v-model="scope.row.widgetType"
                                                placeholder="请选择,不选择页面不展示"
                                                @change="selectWidgetType(scope.$index,scope.row.widgetType)">
                                            <el-option key="" value="" label="不展示"></el-option>
                                            <el-option
                                                    v-for="item in widgetTypes"
                                                    :key="item.name"
                                                    :label="item.desc"
                                                    :value="item.name">
                                                <span style="float: left">{{ item.desc }}</span>
                                                <span style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</span>
                                            </el-option>
                                        </el-select>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                    align="center"
                                    width="80"
                                    label="表单参数">
                                    <template slot-scope="scope">
                                        <el-popover
                                                @show="popoverShow(scope.$index)"
                                                :class="'KeyVal_'+scope.$index"
                                                v-if="widgetTypeMapping[scope.row.widgetType] && widgetTypeMapping[scope.row.widgetType].needOpts"
                                                placement="right"
                                                width="500"
                                                trigger="hover">
                                            <el-row> <!-- v-if="scope.row.widgetType != 'Upload'" -->
                                                <el-table :data="scope.row.enums">
                                                    <el-table-column width="150" property="name" label="Key">
                                                        <template slot-scope="scope">
                                                            <el-input size="mini"
                                                                      v-model="scope.row.name"></el-input>
                                                        </template>
                                                    </el-table-column>
                                                    <el-table-column width="100" property="val" label="Value">
                                                        <template slot-scope="scope">
                                                            <el-input size="mini"
                                                                      v-model="scope.row.val"></el-input>
                                                        </template>
                                                    </el-table-column>
                                                    <el-table-column width="150" property="desc" label="Label">
                                                        <template slot-scope="scope">
                                                            <el-input size="mini"
                                                                      v-model="scope.row.desc"></el-input>
                                                        </template>
                                                    </el-table-column>
                                                    <el-table-column width="60">
                                                        <template slot-scope="scope">
                                                            <el-button type="danger" size="mini"
                                                                @click="deleteKeyVal(scope.$index)">删除
                                                            </el-button>
                                                        </template>
                                                    </el-table-column>
                                                </el-table>
                                                <el-button size="mini" style="margin-top: 10px;"
                                                           @click="addKeyValue(scope.$index)">添加键值对
                                                </el-button>
                                            </el-row>
                                            <el-button size="mini" slot="reference">设置</el-button>
                                        </el-popover>
                                    </template>
                                </el-table-column>
                                <el-table-column label="校验规则">
                                    <el-table-column
                                            align="center"
                                            width="70"
                                            label="必填">
                                        <template slot-scope="scope">
                                            <el-switch
                                                v-if="scope.row.widgetType"    
                                                size="mini"
                                                :key="menuKey"
                                                @click.native="handelUpdate"
                                                v-model="scope.row.required"
                                            >
                                            </el-switch>
                                        </template>
                                    </el-table-column>
                                    <el-table-column
                                        align="center"
                                        width="120"
                                        label="校验类型">
                                        <template slot-scope="scope">
                                            <el-select v-if="scope.row.widgetType" size="mini" v-model="scope.row.validType" placeholder="请选择">
                                                <el-option
                                                        v-for="item in validateTypes"
                                                        :key="item.name"
                                                        :label="item.desc"
                                                        :value="item.name">
                                                    <span style="float: left">{{ item.desc }}</span>
                                                    <span style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</span>
                                                </el-option>
                                            </el-select>
                                        </template>
                                    </el-table-column>
                                    <el-table-column
                                            align="center"
                                            width="120"
                                            label="正则">
                                        <template slot-scope="scope">
                                            <el-input
                                                    v-if="validateTypeMapping[scope.row.validType] && !validateTypeMapping[scope.row.validType].regExp && scope.row.widgetType"
                                                    size="mini" v-model="scope.row.regExp"></el-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column
                                            align="center"
                                            width="100"
                                            label="最小长度">
                                        <template slot-scope="scope">
                                            <el-input
                                                    v-if="validateTypeMapping[scope.row.validType] && validateTypeMapping[scope.row.validType].lengthable && scope.row.widgetType"
                                                    size="mini" v-model="scope.row.minLen"></el-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column
                                            align="center"
                                            width="100"
                                            label="最大长度">
                                        <template slot-scope="scope">
                                            <el-input
                                                    v-if="validateTypeMapping[scope.row.validType] && validateTypeMapping[scope.row.validType].lengthable && scope.row.widgetType"
                                                    size="mini" v-model="scope.row.maxLen"></el-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column
                                            width="100"
                                            align="center"
                                            label="最小值">
                                        <template slot-scope="scope">
                                            <el-input
                                                    v-if="validateTypeMapping[scope.row.validType] && validateTypeMapping[scope.row.validType].valueable && scope.row.widgetType"
                                                    size="mini" v-model="scope.row.minVal"></el-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column
                                            width="100"
                                            align="center"
                                            label="最大值">
                                        <template slot-scope="scope">
                                            <el-input
                                                v-if="validateTypeMapping[scope.row.validType] && validateTypeMapping[scope.row.validType].valueable && scope.row.widgetType"
                                                size="mini" v-model="scope.row.maxVal"></el-input>
                                        </template>
                                    </el-table-column>
                                </el-table-column> 
                            </el-table-column>
                            <el-table-column
                                align="center"
                                width="200"
                                label="关联表字段">
                                <template slot-scope="scope">
                                        <el-cascader v-model="scope.row.ref" :key="menuKey" size="mini" placeholder="设置关联表和字段" :options="tablesAndFields" filterable clearable></el-cascader>
                                </template>
                            </el-table-column>
                            <el-table-column
                                fixed="right"
                                align="center"
                                label="操作"
                                width="80">
                                <template slot-scope="scope">
                                    <el-button type="danger" size="mini" @click="deleteTr(scope.$index)">删除
                                    </el-button>
                                </template>
                            </el-table-column>
                        </el-table>
                        <el-form-item style="margin-top: 30px;" label="">
                            <el-button type="primary" @click="addOrEditField('addNew')">添加数据库字段</el-button>
                            <el-button type="primary" @click="addOrEditField('extend')">添加扩展字段</el-button>
                            <el-button type="success" @click="saveData('schema')">保存</el-button>
                        </el-form-item>

                    </el-form>

                </el-main>
            </el-container>

        </div>
        </transition>
    </div>
    <!-- 新建 编辑 表 结束****** -->

    <!-- 新建 编辑 项目 开始 -->
    <el-dialog
        :title="projectId?'修改项目':'新增项目'"
        :visible.sync="itemDialogVisible"
        width="50%">
        <el-form :model="itemInfo" :rules="rules" ref="itemInfo" label-width="120px" class="demo-ruleForm">
            <el-form-item label="项目名称" prop="projectName">
                <el-input v-model="itemInfo.projectName"></el-input>
            </el-form-item>
            <el-form-item label="包名" prop="packageName">
                <el-input v-model="itemInfo.packageName"></el-input>
            </el-form-item>
            <el-form-item label="模块名称" prop="moduleName">
                <el-input v-model="itemInfo.moduleName"></el-input>
            </el-form-item>
            <el-form-item label="表格前缀" prop="tablePrefix">
                <el-input v-model="itemInfo.tablePrefix"></el-input>
            </el-form-item>
            <el-form-item label="代码生成路径" prop="genToPath">
                <el-input v-model="itemInfo.genToPath"></el-input>
            </el-form-item>
            <el-form-item label="作者" prop="auth">
                <el-input v-model="itemInfo.auth"></el-input>
            </el-form-item>
            <el-form-item label="作者邮箱" prop="email">
                <el-input v-model="itemInfo.email"></el-input>
            </el-form-item>
            <el-form-item label="版本号" prop="version">
                <el-input v-model="itemInfo.version"></el-input>
            </el-form-item>

            <el-form-item>
                <el-button @click="itemDialogVisible = false">取 消</el-button>
                <el-button type="primary" @click="saveItemInfo">保 存</el-button>
            </el-form-item>
        </el-form>
    </el-dialog>
    <!-- 新建 编辑 项目 结束 -->

    <!-- 下载源码 开始 -->
    <el-dialog
        title="下载源码"
        :visible.sync="evcDialogVisible"
        width="50%">
        <el-form ref="evcInfo" :model="evcInfo" label-width="110px" size="mini" :rules="rules">
            <el-form-item label="代码生成路径" prop="genToPath" v-if="evcType == 'path'">
                <el-input v-model="evcInfo.genToPath"></el-input>
            </el-form-item>
            <el-form-item label="项目包名" prop="tableName">
                <el-input v-model="evcInfo.projectName"></el-input>
            </el-form-item>
            <el-form-item label="模块名称" prop="moduleName">
                <el-input v-model="evcInfo.moduleName"></el-input>
            </el-form-item>
            <el-form-item label="表格前缀" prop="tablePrefix">
                <el-input v-model="evcInfo.tablePrefix"></el-input>
            </el-form-item>
            <el-form-item label="作者名称" prop="tablePrefix">
                <el-input v-model="evcInfo.auth"></el-input>
            </el-form-item>
            <el-form-item label="作者邮箱" prop="tablePrefix">
                <el-input v-model="evcInfo.email"></el-input>
            </el-form-item>
            <el-form-item label="版本号" prop="version">
                <el-input v-model="evcInfo.version"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button @click="evcDialogVisible = false">取 消</el-button>
                <el-button type="primary" @click="saveEvcInfo">下 载</el-button>
            </el-form-item>
        </el-form>
    </el-dialog>
    <!-- 下载源码 结束 -->
    

</div>
</body>
<!-- 引入ELEMENT组件库 -->
<script src="/plugins/elementui/vue.min.js"></script>
<script src="/plugins/elementui/index.js"></script>
<script src="/plugins/elementui/axios.min.js"></script>
<script src="/js/demo.js"></script>
</html> 